package com.example.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.Blog;
import com.example.demo.pojo.Gsdt;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface GsdtMapper extends BaseMapper<Gsdt> {
    @Select("SELECT * FROM gsdt ORDER BY gsdt.`yid` DESC LIMIT 0,10")
    List<Gsdt> getGsdtlistTop10();
    @Select("select * from gsdt where yid = #{id}")
    Gsdt getGsdtById(@Param("id") Integer id);
}
